package com.eudon.design_pattern.structural.adapter.object_adapter;

import com.eudon.design_pattern.structural.adapter.class_adapter.OverseaSocket;

/**
 * @author eudon
 * @description 适配器
 * @date 2025/9/1
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public class SocketAdaptor implements ChinaSocket{
    private final OverseaSocket overseaSocket;
    public SocketAdaptor(OverseaSocket overseaSocket) {
        this.overseaSocket = overseaSocket;
    }
    @Override
    public void twoFlat() {
        System.out.println("通过适配器转换，将两扁头插座插在圆头插座上");
        overseaSocket.twoRound();
    }
}
